package list.linked.guard;

/**
 * @author liushiyu@changingedu.com
 * @date 9/7/2019 下午2:58
 */
public class Main {
    public static void main(String[] args) {
        LinkedList<Integer> linked = new LinkedList();
        for (int i = 0; i < 5; i++) {
            linked.add(i*100);
        }
        System.out.println(linked.toString());
        System.out.println(linked.get(1));
        System.out.println(linked.remove(2));
        System.out.println(linked.toString());
        while (linked.isNotEmpty()){
            System.out.println(linked.remove(0));
        }
    }
}
